const mongoMng = require('../mng/mongoMng')
require('../util/util')
const logger = require('log4js').getLogger()

function run() {
    if (!mongoMng.db) {
        setTimeout(() => {
            run()
        }, 1000)
        return
    }

    require('../task/handleBillTask').start().then(result => {
        logger.debug('[' + __filename + ':' + __line + ']', 'here')
    })

    // require('../util/fanliTool').getAdvLink('https://mitem.jd.hk/product/2145564.html')
}

run()